package one.stand.common;

import one.stand.OneUserServiceApplicationTests;
import one.stand.util.RedisUtil;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.TestConfiguration;

import java.util.ArrayList;
import java.util.List;

@TestConfiguration
public class Redis extends OneUserServiceApplicationTests {
    @Autowired
    RedisUtil redisUtil;
    @Test
    public void testList(){
        List<String> list=new ArrayList<>();
        list.add("123");
//        redisUtil.rAddList("1",list);
        redisUtil.rAddList("1","1231");
        System.err.println(redisUtil.listRange("1",0,0));
    }
}

